namespace Product_1.Models
{
    using System;
    using System.Data.Entity;
    using System.ComponentModel.DataAnnotations.Schema;
    using System.Linq;

    public partial class DB : DbContext
    {
        public DB()
            : base("name=DB")
        {
        }

        public virtual DbSet<Bacchu> Bacchus { get; set; }
        public virtual DbSet<Company> Companies { get; set; }
        public virtual DbSet<Condition> Conditions { get; set; }
        public virtual DbSet<Hot6> Hot6 { get; set; }
        public virtual DbSet<LotNumber> LotNumbers { get; set; }
        public virtual DbSet<Manager> Managers { get; set; }
        public virtual DbSet<Material> Materials { get; set; }
        public virtual DbSet<Member> Members { get; set; }
        public virtual DbSet<Product_Mid> Product_Mid { get; set; }
        public virtual DbSet<ProductDB> ProductDBs { get; set; }
        public virtual DbSet<ProductOut> ProductOuts { get; set; }
        public virtual DbSet<Vita500> Vita500 { get; set; }
        public virtual DbSet<Worker> Workers { get; set; }

        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            modelBuilder.Entity<Bacchu>()
                .Property(e => e.Bac_Name)
                .IsUnicode(false);

            modelBuilder.Entity<Bacchu>()
                .Property(e => e.Bac_Unit)
                .IsUnicode(false);

            modelBuilder.Entity<Company>()
                .Property(e => e.Com_Name)
                .IsUnicode(false);

            modelBuilder.Entity<Company>()
                .Property(e => e.Com_Tel)
                .IsUnicode(false);

            modelBuilder.Entity<Company>()
                .Property(e => e.Com_Owner)
                .IsUnicode(false);

            modelBuilder.Entity<Company>()
                .Property(e => e.Com_Type)
                .IsUnicode(false);

            modelBuilder.Entity<Company>()
                .Property(e => e.Com_Item)
                .IsUnicode(false);

            modelBuilder.Entity<Company>()
                .Property(e => e.Com_Memo)
                .IsUnicode(false);

            modelBuilder.Entity<Condition>()
                .Property(e => e.Con_Name)
                .IsUnicode(false);

            modelBuilder.Entity<Condition>()
                .Property(e => e.Con_Unit)
                .IsUnicode(false);

            modelBuilder.Entity<Hot6>()
                .Property(e => e.Hot_Name)
                .IsUnicode(false);

            modelBuilder.Entity<Hot6>()
                .Property(e => e.Hot_Unit)
                .IsUnicode(false);

            modelBuilder.Entity<LotNumber>()
                .Property(e => e.Lot_LotNumber)
                .IsUnicode(false);

            modelBuilder.Entity<Manager>()
                .Property(e => e.Man_Name)
                .IsUnicode(false);

            modelBuilder.Entity<Manager>()
                .Property(e => e.Man_Tel)
                .IsUnicode(false);

            modelBuilder.Entity<Manager>()
                .Property(e => e.Man_Email)
                .IsUnicode(false);

            modelBuilder.Entity<Manager>()
                .Property(e => e.Man_Addr)
                .IsUnicode(false);

            modelBuilder.Entity<Manager>()
                .Property(e => e.Man_Memo)
                .IsUnicode(false);

            modelBuilder.Entity<Material>()
                .Property(e => e.Mat_Name)
                .IsUnicode(false);

            modelBuilder.Entity<Material>()
                .Property(e => e.Mat_Group)
                .IsUnicode(false);

            modelBuilder.Entity<Material>()
                .Property(e => e.Mat_Unit)
                .IsUnicode(false);

            modelBuilder.Entity<Material>()
                .Property(e => e.Mat_Memo)
                .IsUnicode(false);

            modelBuilder.Entity<Member>()
                .Property(e => e.Mem_Name)
                .IsUnicode(false);

            modelBuilder.Entity<Member>()
                .Property(e => e.Mem_Tel)
                .IsUnicode(false);

            modelBuilder.Entity<Member>()
                .Property(e => e.Mem_Email)
                .IsUnicode(false);

            modelBuilder.Entity<Member>()
                .Property(e => e.Mem_Addr)
                .IsUnicode(false);

            modelBuilder.Entity<Member>()
                .Property(e => e.Mem_Memo)
                .IsUnicode(false);

            modelBuilder.Entity<Product_Mid>()
                .Property(e => e.PM_LotNumber)
                .IsUnicode(false);

            modelBuilder.Entity<Product_Mid>()
                .Property(e => e.PM_State)
                .IsUnicode(false);

            modelBuilder.Entity<ProductDB>()
                .Property(e => e.Pro_Name)
                .IsUnicode(false);

            modelBuilder.Entity<ProductDB>()
                .Property(e => e.Pro_Group)
                .IsUnicode(false);

            modelBuilder.Entity<ProductDB>()
                .Property(e => e.Pro_Unit)
                .IsUnicode(false);

            modelBuilder.Entity<ProductDB>()
                .Property(e => e.Pro_Memo)
                .IsUnicode(false);

            modelBuilder.Entity<ProductDB>()
                .Property(e => e.Mem_Name)
                .IsUnicode(false);

            modelBuilder.Entity<ProductDB>()
                .Property(e => e.PM_LotNumber)
                .IsUnicode(false);

            modelBuilder.Entity<ProductOut>()
                .Property(e => e.ProOut_Name)
                .IsUnicode(false);

            modelBuilder.Entity<ProductOut>()
                .Property(e => e.ProOut_Memo)
                .IsUnicode(false);

            modelBuilder.Entity<Vita500>()
                .Property(e => e.Vita_Name)
                .IsUnicode(false);

            modelBuilder.Entity<Vita500>()
                .Property(e => e.Vita_Unit)
                .IsUnicode(false);

            modelBuilder.Entity<Worker>()
                .Property(e => e.Wor_Name)
                .IsUnicode(false);

            modelBuilder.Entity<Worker>()
                .Property(e => e.Wor_Tel)
                .IsUnicode(false);

            modelBuilder.Entity<Worker>()
                .Property(e => e.Wor_Email)
                .IsUnicode(false);

            modelBuilder.Entity<Worker>()
                .Property(e => e.Wor_Addr)
                .IsUnicode(false);

            modelBuilder.Entity<Worker>()
                .Property(e => e.Wor_Memo)
                .IsUnicode(false);
        }
    }
}
